package com.woniuxy.carrental.service;

import com.woniuxy.carrental.entity.Carpart;

import java.util.List;

/**
 * @author xilei
 * @create 2021-10-03 上午 11:09
 */

public interface CarPartService {
    //查所有汽配信息
    List<Carpart> findCarpart();
    //分页查汽配信息
    List<Carpart> findCarpartBypage(Integer pageIndex,Integer pageSize);
    //分页查+按条件查汽配信息
    List<Carpart> findCarpartBypageByparm(String carpart_name,String carpart_type,
                                         String carpart_vehicle,Integer pageIndex,Integer pageSize);
    //改汽配信息
    void updateCarpart(String carpart_name,String carpart_type,
                       String carpart_vehicle,String carpart_picture,Integer carpart_id);
    //删汽配信息
    void deleteCarpart(Integer carpart_id);
    //增汽配信息
    void insertCarpart(Carpart carpart);
}
